<%@ page language="java"   pageEncoding="UTF-8"%>
<%@ page import="net.sapfree.user.vo.UserVO"%>
<%@ taglib uri="/WEB-INF/sapfree-info.tld" prefix="sap" %>

<%
String path = request.getContextPath();
String personuuid = request.getAttribute("personuuid")==null?"":request.getAttribute("personuuid").toString();

String wikitaskuuid = request.getAttribute("wikitaskuuid")==null?"":request.getAttribute("wikitaskuuid").toString();
String worduuid = request.getAttribute("worduuid")==null?"":request.getAttribute("worduuid").toString();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


<title>我的飞客</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="<%=path%>/include/styleBase/css/ostable.css" rel="stylesheet"></link>
<link href="<%=path%>/include/styleBase/css/leftPage.css" rel="stylesheet"></link>
<link href="<%=path%>/include/styleBase/css/tagStyle.css" rel="stylesheet"></link>
<link href="<%=path%>/include/styleBase/css/fontStyle.css" rel="stylesheet"></link>

<link href="<%=path%>/include/styleBase/css/headfoot.css" rel="stylesheet"></link>
<script type="text/javascript" src="<%=path%>/include/styleBase/js/jquery.js"></script>
<script type="text/javascript" src="<%=path%>/include/styleBase/js/style.js"></script>

</head>

<body>
<form name="srchForm" method="post">

<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#c7b758">
<tr>
	<td>
    <%@include file="../include/jsp/top_schome.jsp"%>
    </td>
</tr>
<tr>
	<td align="center">
	
    <table border="0" cellpadding="0" cellspacing="0" width="1000" align="center" bgcolor="#FFFFFF">
	
	<tr>
	  <td>&nbsp;</td>
	  <td colspan="4">&nbsp;</td>
	</tr>
	<tr>
    	<td width="20">&nbsp;</td>
    	<td valign="top" width="190">
        	<table border="0" cellpadding="0" cellspacing="0" width="100%">
            	<tr><td height="20"></td></tr>
                <tr><td height="30" align="center"><input type="button" value="添加新主题" onclick="javascript:_newword();" /></td></tr>
                <sap:WordList taskuuid="<%=wikitaskuuid%>">
                <tr>
                	<td height="25" class="blackBold12" align="left"><sap:Word><a href="<%=path%>/wiki?worduuid=<sap:write property='WKW_UUID'/>"><sap:write property="WKW_WORDNAME" /></a></sap:Word></td>
                </tr>
                </sap:WordList>
            </table>
        </td>
        <td width="10">&nbsp;</td>
    	<td valign="top" width="760">
        
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <sap:Task id="<%=wikitaskuuid%>">
        <tr>
        	<td width="156" height="166" align="left">
            	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                <tr>
                	<td align="center" valign="middle" bgcolor="#FFFFFF" height="166" width="156">
                    <img src="<%=path%>/images/temp/visitor2.jpg" height="160" width="150" style="vertical-align:middle;"></td>
               	</tr>
                </table>            </td>
        
            <td width="10"></td>
            <td valign="top">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
            	<td align="left"  class="blackBold24"><sap:write property="WKT_TASKNAME" /></td>
            </tr>
            <tr>
            	<td align="left" class="greyNormal14"><sap:write property="WKT_MEMO" /></td>
            </tr>
            <tr><td height="10" align="left"></td>
            </tr>
            <tr>
            	<td align="left">
                <table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="#6f8fc8">
                <tr>
                	<td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#c9d9e9">
                    <tr>
                    	<td width="10" height="30"></td>
                    	<td width="137" align="left" class="greyBold14">发布人：<span class="lightBlueBold14"><sap:write property="WKT_TASKPERSONNAME" /></span></td>
                        <td width="485" align="left" class="greyNormal14">本任务包含 <sap:write property="WKT_WORDCOUNT" /> 个主题，已有 <sap:write property="WKT_JOINPERSON" /> 名同学参与</td>
                    </tr>    	
                    </table>                    </td>
                </tr>
                </table>                </td>
            </tr>
            </table>
                        </td>
        </tr>
        </sap:Task>
        <tr><td height="10"></td></tr>
        <tr>
          <td colspan="3" class="tip" height="30">
          	<table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
            	<td width="500" align="left" class="greyBold12">最新被编辑的主题</td>
                <td class="lightBlueNormal12" align="right">&nbsp;</td>
            </tr>
            </table>          
            </td>
        </tr>
        
        <tr>
        	<td colspan="3">
            <table border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" width="100%">
            <tr>
            	<td>
                <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" width="100%">
                <tr>
                    <td colspan="2" height="10" class="greyNormal12" align="left"></td>
                </tr>
                <%
				if(!"".equals(worduuid)){
				%>
                <sap:Word id="<%=worduuid%>">
                <tr>
                  <td width="130" rowspan="3" bgcolor="#FFFFFF" class="blackBold14" align="center">
                    <input id="zhaopianurl" type="hidden" value="<sap:write property='WKW_PICTURE'/>">
                    <img id="myphoto" name="myphoto" savePath="" alt="" width="120" height="120" src="" style="border: 5px; border-color:#CCCCCC" />
                    <script language="javascript">
					<!--
					function setzhaopianurl(){
						var obj = document.getElementById("zhaopianurl");
						var pobj = document.getElementById("myphoto");
						if(obj.value==""){
							pobj.src="<%=path%>/upload/user/nobody.gif";
						}else{
							pobj.src="<%=path%>/servlet/FileUploadManagerServlet?method=showImage&imgPath="+obj.value;
						}
					}
					setzhaopianurl();
					-->
					</script>                    </td>
                  <td width="630" bgcolor="#FFFFFF" class="blackBold14" align="left"><sap:write property="WKW_WORDNAME" /></td>
                </tr>
                
                <!--tr>
                  <td bgcolor="#FFFFFF" class="blackNormal12" align="left"><span class="greyNormal12">参与编辑的同学：<span class="lightBlueNormal12">张超然、孟幻</span></span></td>
                </tr-->
                <tr>
                    <td width="608" bgcolor="#FFFFFF" class="blackNormal12" align="left"><sap:write property="WKW_MEMO" /></td>
                </tr>
                <tr><td height="30" align="left">正文</td><td align="right"><input type="button" value="添加节" onclick="javascript:_newcapital('<sap:write property="WKW_UUID"/>');"/>&nbsp;&nbsp;</td></tr>
                </sap:Word>
                
                
                <tr>
                    <td colspan="2">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    
                    <sap:WordCapitalList worduuid="<%=worduuid%>">
                    <sap:WordCapital>
                    <tr>
                    	<td width="10">&nbsp;</td>
                        <td width="596" height="30" align="left" class="blackBold14"><sap:write property="WKC_NAME"/></td>
                        <td width="142" align="right" class="lightBlueNormal12"><a href="#2011" onclick="_editcapital('<sap:write property="WKC_UUID"/>')">编辑本段内容</a></td>
                        <td width="10">&nbsp;</td>
                    </tr>
                    <tr>
                    	<td width="10"></td>
                    	<td colspan="2"><div style="border-top:1px dashed #cccccc;height: 1px;overflow:hidden; width:100%;"></div></td>
                    	<td width="10"></td>
                    </tr>
                    <tr>
                    	<td width="10"></td>
                        <td colspan="2" align="left" class="blackNormal12"><sap:write property="WKC_CONTENTHTML"/></td>
                        <td width="10"></td>
                    </tr>
                    <tr><td width="10"></td><td height="20" colspan="2"></td><td width="10"></td></tr>
                    </sap:WordCapital>
                    </sap:WordCapitalList>
                    
                    </table>
                    </td>
                </tr>
                
                <%}%>
                </table>
                </td>
            </tr>
            </table>            
            </td>
        </tr>
        
        </table>        
                </td>
        <td width="20"></td>
    </tr>
    
    <tr><td height="20"></td></tr>
	</table>
    </td>
    
</tr>
<tr>
	<td>
    <table border="0" cellpadding="0" cellspacing="0" width="1000" align="center">
        <tr><td height="10"></td></tr>
        <tr><td><hr color="#999999" size="1" width="100%"></td></tr>
        <tr>
            <td align="center" height="25">
            （C） 2011-2016 Schome.com.cn
            </td>
        </tr>
        <tr>
            <td align="center" height="25">&nbsp;</td>
        </tr>
    </table>
    </td>
</tr>
</table>
<br>

<br><br>


</form>
</body>
</html>

<script language="javascript">
function _newword(){
	window.open("<%=path%>/wiki/wikiNewWord.jsp?taskuuid=<%=wikitaskuuid%>");
}
function _newcapital(worduuid){
	window.open("<%=path%>/wiki/wikiNewCapital.jsp?worduuid="+worduuid);
}
function _editcapital(capitaluuid){
	window.open("<%=path%>/wiki?method=editCapital&capitaluuid="+capitaluuid);
}
</script>